package com.cn.wanxi.dao;

import com.cn.wanxi.dto.UserDto;
import com.cn.wanxi.model.PageModel;
import com.cn.wanxi.model.UserModel;

import java.util.List;

public interface UserDao {
    int add(UserModel userModel);

    UserModel findByUsernameIsHave(UserModel userModel);

    UserModel findByUsernameAndPasswordIsHave(UserModel userModel);

    List<UserModel> findAll(UserDto userDto, PageModel pageModel);

    int del(int id);

    int update(UserModel userModel);

    UserModel findByUserId(int id);

    int count(UserDto userDto);
}
